import { createApp } from 'vue'
import { createRouter, createWebHashHistory } from 'vue-router'
import { setupLayouts } from 'virtual:generated-layouts'
import pinia from './store/pinia'
import pages from 'virtual:generated-pages'
import App from './App.vue'
import './utils/router'
import './assets'
import './styles/index.css'
import '../mock'
import '@arco-design/web-vue/dist/arco.css'

import router from './router'

const app = createApp(App)
app.config.warnHandler = () => null
app.use(
  router
)
app.use(pinia)
app.mount(`#app`)

